﻿<%@ Page Title="" Language="C#" MasterPageFile="~/TimKenSite.Master" AutoEventWireup="true" CodeBehind="SelectAddress.aspx.cs" Inherits="TimKen.Web.Shop.SelectAddress" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Title" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="body" runat="server">
<script src="../Common/Script/common.js" type="text/javascript"></script>
<script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $(".nav ul li a:eq(0)").addClass("navon"); //导航，当前栏目高亮
        $(".address_top ul li span").click(function () {
            $(this).parent().remove();
        });
        $("#dz_close").click(function () {
            if ($(this).html() == "[关闭]") {
                $(this).parent().siblings().hide();
                $(this).html("[展开]");
            } else {
                $(this).parent().siblings().show();
                $(this).html("[关闭]");
            }
        });
    });
    window.onload = function () { for (var ii = 0; ii < document.links.length; ii++) document.links[ii].onfocus = function () { this.blur() } }
    function add(va) {
        if (va == 1) {
            alert("添加成功！");
        } else {
            alert("添加失败！");
        }
    }

    function del(va) {
        if (va == 1) {
            alert("删除成功！");
        } else {
            alert("删除失败！");
        }
    }

</script>
<form runat="server"><div class="car common_border">
            	<ul class="car_step">
                	<img src="../Common/Image/iconbtnbg/car_gwch.gif" /><img src="../Common/Image/iconbtnbg/car_qrfhl.gif" /><img src="../Common/Image/iconbtnbg/car_tjdd.gif" />
                </ul>
                
                <ul class="address">
                	
                    <div class="address_top">
                    	<h1>收货地址<span id="dz_close">[关闭]</span></h1>
                        <ul>
                        	<h2>常用地址</h2>
                            <asp:Repeater ID="Rp_Address" runat="server" 
                                onitemcommand="Rp_Address_ItemCommand">
                          <ItemTemplate>
                            <li><span>  
                                <asp:LinkButton ID="lk_Del" OnClientClick="retutn confirm('您确定要删除?')" runat="server" CommandName="del" CommandArgument='<%#Eval("id")%>'>删除</asp:LinkButton></span>
                                <asp:RadioButton ID="rd_ck"  AutoPostBack="true" runat="server"     OnCheckedChanged="rd_CheckChanged"/>
                                （轻松购）<%#Eval("Consignee")%>：<%#Eval("Address")%></li>
                              <asp:HiddenField ID="Rd_id" runat="server" Value='<%#Eval("id")%>' />
                           </ItemTemplate>
                           </asp:Repeater>
                        </ul>
                    </div>
                    
                    <div class="address_table">
                    
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <th scope="row"><span>*</span>收货人：</th>
    <td><input  class="address_inone" id="name" runat="server" /></td>
  </tr>
  <tr>
    <th scope="row"><span>*</span>地   址：</th>
    <td><input class="address_intwo" runat="server"  id="address" /></td>
  </tr>
  <tr>
    <th scope="row">邮政编码：</th>
    <td><input  runat="server" id="code" class="address_intd" />有助于快速确定送货地址</td>
  </tr>
  <tr>
    <th scope="row"><span>*</span>手机号码：</th>
    <td><input runat="server" id="phone" class="address_inone" />或者固定电话：<input id="pnum" runat="server" class="address_inone" /></td>
  </tr>
  <tr>
    <th scope="row">电子邮件：</th>
    <td><input runat="server" id="email" class="address_inone" />用来接收订单邮件提醒，便于您及时了解订单状况</td>
  </tr>
    <tr>
    <th scope="row">期望交货日期：</th>
    <td><input runat="server" id="txt_Date" class="address_inone Wdate" onclick="WdatePicker()" /></td>
  </tr>
    <tr>
    <th scope="row">运货类别：</th>
    <td><asp:DropDownList ID="ddlTransType" runat="server" DataTextField="TransTypeName"
                    DataValueField="TransTypeID">
                </asp:DropDownList></td>
  </tr>
  <tr>
    <th scope="row" style="vertical-align:top">备注：</th>
    <td><textarea class="address_inf" id="remarks" runat="server"></textarea></td>
  </tr>  
  <tr>
    <th scope="row">&nbsp;</th>
    <td><div id="adddizhi">
        <asp:LinkButton ID="lk_Add" runat="server" onclick="lk_Add_Click">[添加常用地址]</asp:LinkButton></div></td>
  </tr>
  <tr>
    <th scope="row">&nbsp;</th>
    <td><a href="#"> 
        <asp:ImageButton ID="img_add" runat="server"  
            ImageUrl="../Common/Image/iconbtnbg/order_shrxx.gif" onclick="img_add_Click"/></a></td>
  </tr>
</table>
                    
                    
                    </div>
                
                </ul>
            </div>
            </form>

</asp:Content>
